package com.bicon.base.data.pojo.botu;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 商品图片表
 * </p>
 *
 * @author zhoutyianqi
 * @since 2018-07-25
 */
@TableName("product_picture")
public class ProductPicture extends Model<ProductPicture> {

    private static final long serialVersionUID = 1L;

    private String id;
    /**
     * 图片url
     */
    @TableField("product_url")
    private String productUrl;
    /**
     * 商品id
     */
    @TableField("product_id")
    private String productId;
    /**
     * 是否主图 1:是主图
     */
    @TableField("is_main")
    private String isMain;
    @TableField("create_date")
    private Date createDate;
    @TableField("update_date")
    private Date updateDate;
    @TableField("logic_delete")
    private String logicDelete;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getProductUrl() {
        return productUrl;
    }

    public void setProductUrl(String productUrl) {
        this.productUrl = productUrl;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public String getIsMain() {
        return isMain;
    }

    public void setIsMain(String isMain) {
        this.isMain = isMain;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public String getLogicDelete() {
        return logicDelete;
    }

    public void setLogicDelete(String logicDelete) {
        this.logicDelete = logicDelete;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ProductPicture{" +
        "id=" + id +
        ", productUrl=" + productUrl +
        ", productId=" + productId +
        ", isMain=" + isMain +
        ", createDate=" + createDate +
        ", updateDate=" + updateDate +
        ", logicDelete=" + logicDelete +
        "}";
    }
}
